package com.java01.apache.commons.io;

import org.apache.commons.io.FilenameUtils;

public class CorrectFileName {

	public static void main(String[] args) {
		String fileName = "/mnt/nas/../../etc/httpd.conf";
		fileName = FilenameUtils.normalize(fileName);
		System.out.println(fileName);
	}
}
